<me:UIVAF x:Class="WPFExcelReport.TVAFSWTXT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:VAK="clr-namespace:WPFExcelReport;assembly=TVAKOLL"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"
                    xmlns:TK="clr-namespace:WPFExcelReport;assembly=TTXTKON"  
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"   
                    FontSize="14"
                   x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVAF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key ="trim"/>
    </me:UIVAF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel  Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="2">
            <WrapPanel  Margin="0,10,0,0">

                <TXT:TXTTP Grid.Row="0"  Visibility="Collapsed" IsAuto="True"
                               Name="cTVF"
                               TART="VAF"
                               SIND="{Binding TXTISIND,ElementName=cVA09}"  
                               IsEdit="{Binding IsEdit,ElementName=cVA09}"
                               IsSaved="{Binding IsEdit,ElementName=cVA09}" 
                               VerticalAlignment="Top"/>
                
            </WrapPanel>
            <VA:TVAWSPATTERN ORDERNUM="{Binding KEY,ElementName=cVA09}"/>
        </StackPanel>
        <Expander  Grid.Row="1" Grid.Column="0" 
                   IsExpanded="True" ExpandDirection="Right"  Name="cZone">
            <Expander.Header>
                <StackPanel Visibility="{Binding IsExpanded,ElementName=cZone,Converter={StaticResource nbv}}">
                    <TextBlock Text="{Binding KEY,ElementName=cVA09}" Width="Auto"/>
                </StackPanel>
            </Expander.Header> 
                <me:TJTVA09  Margin="10,0,0,0"  Grid.Row="1"   x:Name="cVA09" 
                             CART="{Binding CART,ElementName=TV}"
                             IsShowTxt="{Binding IsShowTxt,ElementName=TV}"
                             Rows="30"
                             IsPage="True"
                             
                       /> 
        </Expander>

        <ex:AniScrollViewer Grid.Row="1"  Grid.Column="1"  >
            <StackPanel>
                <TK:TPT1ZZ  INFO="{Binding ZZ,ElementName=TV}" Name="cZZ" Grid.Row="1" Grid.Column="0" 
                            PIND="{Binding PIND,ElementName=cTVF}"
                             />
                <TK:TPT2YF  INFO="{Binding YF,ElementName=TV}" Name="cYF"   Grid.Row="1" Grid.Column="0" 
                            PIND="{Binding PIND,ElementName=cTVF}" />
                <TK:TPT3XS  INFO="{Binding JS,ElementName=TV}" Name="cXS"   Grid.Row="1" Grid.Column="0" PIND="{Binding PIND,ElementName=cTVF}"
                            />
                <TK:TPT4KH  INFO="{Binding KH,ElementName=TV}" Name="cKH"   Grid.Row="1" Grid.Column="0" PIND="{Binding PIND,ElementName=cTVF}"
                           />
            </StackPanel>
        </ex:AniScrollViewer>


    </Grid>
</me:UIVAF>
